// 药库管理

export default {
    'GET /api/medicine/list': {
        code: 0,
        data: {
            page: 1,
            data: [
                { id: '111', name: '布洛芬颗粒', kc: 1, type: '片剂', createTime: '2023-01-01', deadline: '2024-01-01', kind: 'xxx' },
                { id: '222', name: '阿莫西林', kc: 4, type: '片剂', createTime: '2023-01-01', deadline: '2024-01-01', kind: 'xxx' },
            ],
            success: true,
            total: 2,
        }
    },
    'GET /api/medicine/info': {
        code: 0,
        data: {
            page: 1,
            data: [
                { id: '111', name: '布洛芬颗粒', sccj: '河北省保定', kind: 'xxxx', kc: 1, totalMoney: '12', bz: '盒', dj: '119', scph: '123456', type: '片剂', createTime: '2023-01-01', deadline: '2024-01-01' },
            ],
            success: true,
            total: 1,
            kc: 998,  // 库存
            totalMoney: 99998 // 总计金额
        },
        message: 'success',
    },
    'POST /api/medicine/add': {
        code: 0,
        data: true,
        success: true
    },
    'POST /api/medicine/deleteOne': {
        code: 0,
        data: true,
        success: true
    },
    'POST /api/medicine/deleteAll': {
        code: 0,
        data: true,
        success: true
    },
    'POST /api/medicine/out': {
        code: 0,
        data: true,
        success: true
    },
    'POST /api/medicine/history': {
        code: 0,
        data: {
            page: 1,
            data: [
                { id: '111', name: '布洛芬颗粒', sccj: '河北省保定', kind: 'xxxx', kc: 1, totalMoney: '119', bz: '盒', dj: '119', scph: '123456', type: '片剂', createTime: '2023-01-01', deadline: '2024-01-01', inOutTime: '2014-10-01', inOut: 'out', operator: '张三' },
            ],
            success: true,
            total: 1,
            kc: 998,  // 库存
            totalMoney: 99998, // 总计金额
            rest: 50
        },
        success: true
    },
    'GET /api/medicine/deadlineRemind': {
        code: 0,
        data: [
            '布洛芬颗粒将于4天后过期',
            '阿莫西林将于3天后过期',
        ]
    },

    'GET /api/medicine/search': {
        code: 0,
        data: [
            { name: '布洛芬', id: 'LS11234', jq: 1, age: 30, sex: 'man', birth: '1994-07-07', marriage: '', nation: '河北省保定市', address: '河北软件职业技术学院' },
            { name: '阿莫西林', id: '333501', jq: 2, age: 32, sex: 'woman', birth: '1994-07-07', marriage: '', nation: '河北省保定市', address: '河北软件职业技术学院' },
        ]
    }
}